<?php
/**
* @version $Id: frontstats.php 792 2009-05-25 11:56:22Z mahagr $
* Kunena Component
* @package Kunena
*
* @Copyright (C) 2008 - 2009 Kunena Team All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.kunena.com
*
* Based on FireBoard Component
* @Copyright (C) 2006 - 2007 Best Of Joomla All rights reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @link http://www.bestofjoomla.com
*
* Based on Joomlaboard Component
* @copyright (C) 2000 - 2004 TSMF / Jan de Graaff / All Rights Reserved
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* @author TSMF & Jan de Graaff
**/

// Dont allow direct linking
defined( '_JEXEC' ) or die('Restricted access');

require_once (KUNENA_PATH_LIB.DS . 'kunena.login.php');

?>
        <!-- BEGIN: KUNENA LOGIN -->
<div class="<?php echo $boardclass; ?>_bt_cvr1">
<div class="<?php echo $boardclass; ?>_bt_cvr2">
<div class="<?php echo $boardclass; ?>_bt_cvr3">
<div class="<?php echo $boardclass; ?>_bt_cvr4">
<div class="<?php echo $boardclass; ?>_bt_cvr5">
        <table  class = "fb_blocktable" id ="fb_frontstats" border = "0" cellspacing = "0" cellpadding = "0" width="100%">
            <thead>
                <tr>
                    <th colspan="2">
                        <div class = "fb_title_cover fbm">
                            <a class="fb_title fbl"><?php echo _PROFILEBOX_LOGIN; ?></b></a>
                        </div>
                    </th>
                </tr>
            </thead>
            <tbody>
                <tr class = "fb_sth fbm">
                        <th colspan="2" style="text-align:center!important; padding:4px;" class = "th-1 <?php echo $boardclass ;?>sectiontableheader"><?php echo _KUNENA_LOGIN_FORUM ?>
                        </th>
                </tr>
                                <tr class="fb_forum-pathway">

                                <td class="fb_forum-pathway">

<form action="index.php" method="post" name="login" id="form-login" >
<table width="100%" cellspacing="1" cellpadding="5">
        <tbody>
                <tr>
                        <td width="50%" class="fb_forum-pathway" style="padding:10px;">
                <p><?php echo _KUNENA_LOGIN_MESSAGE; ?></p>
                <p align="center">
                                <a href="<?php echo $ruleslink  ?>"><?php echo _COM_FORUM_RULES; ?></a>
                                &nbsp;&nbsp;|&nbsp;&nbsp;
                                <a href="<?php echo $helplink  ?>"><?php echo _GEN_HELP; ?></a>
                </p>
                        </td>
                        <td class="fb_forum-pathway">
                                <table cellspacing="1" cellpadding="4" align="center" style="width: 100%;">
                                        <tbody>
                                                <tr>
                                                        <td valign="top"><b><?php echo _COM_A_USERNAME; ?></b></td>
                                                        <td><input type="text" name="username" class="k_inputbox" alt="username" size="30" />
                                                                <br/>
                                                                <span class="fb_profilebox_link">
                                                                <a href="<?php echo $lostuserlink; ?>">
                                                                <?php echo _PROFILEBOX_FORGOT_USERNAME; ?></a>
                                                                </span>
                                                        </td>
                                                </tr>
                                                <tr>
                                                        <td valign="top"><b><?php echo _KUNENA_PASS; ?></b></td>
                                                        <td>
                                                                <input type="password" name="passwd" class="k_inputbox" size="30" alt="password" />
                                                                <br/>
                                                                <span class="fb_profilebox_link">
                                                                <a href="<?php echo $lostpasslink; ?>">
                                                                <?php echo _PROFILEBOX_FORGOT_PASSWORD; ?></a>
                                                                </span>
                                                        </td>
                                                </tr>
                                                <?php if(JPluginHelper::isEnabled('system', 'remember')) : ?>
                                                <tr>
                                                        <td>
                                                        </td>
                                                        <td><input type="checkbox" name="remember" value="yes" alt="Remember Me" /> <span><?php echo JText::_('Remember me') ?></span></td>
                                                </tr>
                                                <?php endif; ?>
                                                <tr>
                                                        <td></td>
                                                        <td>
                                                                <?php
                                                                $usersConfig = &JComponentHelper::getParams( 'com_users' );
                                                                if ($usersConfig->get('allowUserRegistration')) : ?>
                                                                <span class="fb_profilebox_link">
                                                                <a href="<?php echo $registerlink; ?>">
                                                                <?php echo _PROFILEBOX_CREATE_ACCOUNT; ?></a>
                                                                </span>
                                                                <?php endif; ?>
                                                        </td>
                                                </tr>
                                        </tbody>
                                </table>
                        </td>
                </tr>
                <tr>
                        <td align="center" colspan="2" class="fb_forum-pathway" style="text-align:center!important;">
                                <input type="submit" name="Submit" class="fb_button" value="<?php echo JText::_('LOGIN') ?>" />
                                <input type="hidden" name="option" value="com_user" />
                                <input type="hidden" name="task" value="login" />
                                <input type="hidden" name="return" value="<?php echo $return; ?>" />
                                <?php echo JHTML::_( 'form.token' ); ?>
                        </td>
                </tr>
        </tbody>
</table>
</form>
                                
                                </td>


                                </tr>
                        </tbody>
                </table>
</div>
</div>
</div>
</div>
</div>
<!-- FINISH: KUNENA LOGIN -->


